package com.ruoyi.marketing.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

/**
 * 查看参加活动人数对象 award_person
 *
 * @author hao
 * @date 2023-01-31
 */

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("award_person")
public class AwardPerson extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 活动人数id
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /**
     * 活动id
     */
    @TableField("activity_id")
    private Long activityId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField("user_id")
    private Long userId;
    /**
     * 用户
     */
    @TableField(exist = false)
    private SysUser user;

    /**
     * 剩余抽奖次数
     */
    @Excel(name = "剩余抽奖次数")
    @TableField("prize_num")
    private Long prizeNum;

    /**
     * 中将次数
     */
    @Excel(name = "中将次数")
    @TableField("draw_num")
    private Long drawNum;
}
